package com.xinshujia.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinshujia.entity.UserEntity;

import java.util.List;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-15 19:35       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 */
public interface UserService extends IService<UserEntity> {
    /*新增用户*/
    boolean insert(UserEntity userEntity);

    /*根据Id删除用户（实际是更新操作）*/
    boolean deleteById(Long id);

    /*分页查询*/
    Page<UserEntity> findAllByPage(Long pageNum, Long pageSize, String username);

    /*单个属性更新*/
    boolean patchUser(Long id, int enabled);
}
